package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.product.entity.ProductAttrValueEntity;

import java.util.List;
import java.util.Map;

/**
 * spu属性值
 *
 * @author dy
 * @email 1091330089@qq.com
 * @date 2022-08-11 11:06:25
 */
public interface ProductAttrValueService extends IService<ProductAttrValueEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //保存spu 规格参数
    void saveProductAttrValues(List<ProductAttrValueEntity> productAttrValueEntities);

    //获取spu规格
    List<ProductAttrValueEntity> baseAttrListForSpu(Long spuId);

    //修改商品规格
    void updateSpuAttr(Long spuId, List<ProductAttrValueEntity> attrs);
}

